package simple.utils.data.serializers;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * Created by rehak on 4/25/14.
 */
public interface Serializer<E> {

    public byte[] toBytes(E e) throws IOException;

    public E fromBytes(byte[] data) throws IOException;

}
